projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8076f
)
GtkStyleProperties: Assign default value for the font property
author
Carlos Garnacho
<carlosg@gnome.org>
Mon, 20 Dec 2010 11:26:11 +0000
(12:26 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Mon, 20 Dec 2010 12:55:37 +0000
(13:55 +0100)
This fixes a failure when running make test, where style queries
happened before there was even an screen.
gtk/gtkstyleproperties.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstyleproperties.c
b/gtk/gtkstyleproperties.c
index c6592740fcfd36cd3b36013718c6fcf0dcd34fdb..abd9383440088540c64679906b1ad0457d3e2288 100644
(file)
--- a/
gtk/gtkstyleproperties.c
+++ b/
gtk/gtkstyleproperties.c
@@
-853,6
+853,8
@@
lookup_default_value (PropertyNode *node,
{
if (node->pspec->value_type == GTK_TYPE_THEMING_ENGINE)
g_value_set_object (value, gtk_theming_engine_load (NULL));
+ else if (node->pspec->value_type == PANGO_TYPE_FONT_DESCRIPTION)
+ g_value_take_boxed (value, pango_font_description_from_string ("Sans 10"));
else
g_param_value_set_default (node->pspec, value);
}